/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.elka.gis.main.helper;

/**
 *
 * @author looser
 */
public class Pair<t1,t2> {
    public final t1 fst;
    public final t2 snd;

    public Pair(t1 fst, t2 snd) {
        this.fst = fst;
        this.snd = snd;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Pair<t1, t2> other = (Pair<t1, t2>) obj;
        if (this.fst != other.fst && (this.fst == null || !this.fst.equals(other.fst))) {
            return false;
        }
        if (this.snd != other.snd && (this.snd == null || !this.snd.equals(other.snd))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }
}
